﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="EditBook.aspx.cs" Inherits="Maticsoft.Web.Admin.Shopping.EditBook" %>
<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="/My97DatePicker/WdatePicker.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111"
        style="border-collapse: collapse">
        <tr>
            <td width="100%" height="20" valign="top">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="30">
                            <img height="14" src="../images/book1.gif" width="20">&nbsp;产品管理&nbsp;&gt;&gt;&nbsp;添加/修改产品
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td width="100%" height="1" background="../images/sp_bg.gif">
            </td>
        </tr>
    </table>
    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td height="10">
            </td>
        </tr>
    </table>
    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td height="95" align="center" bgcolor="#FFFFFF">
                <table width="100%" border="0" id="needset" cellspacing="0" cellpadding="0" style="text-align: left;
                    border: 1px solid #cfcfcf; background: #ffffff;">
                    <tr>
                        <td width="150" class='bline' height="26" style="padding-left: 10px;">
                            分类：
                        </td>
                        <td class='bline'>
                            <asp:DropDownList ID="ddlType" runat="server">
                            </asp:DropDownList>
                             <asp:RequiredFieldValidator
                                ID="RequiredFieldValidator2" runat="server" ErrorMessage="分类不能为空" 
                                ControlToValidate="ddlType" Display="Dynamic"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td width="150" class='bline' height="26" style="padding-left: 10px;">
                            编号：
                        </td>
                        <td class='bline'>
                            <asp:TextBox ID="txtISBN" runat="server" Width="100px"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator
                                ID="RequiredFieldValidator11" runat="server" ErrorMessage="编号不能为空" 
                                ControlToValidate="txtISBN" Display="Dynamic"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td width="150" class='bline' height="26" style="padding-left: 10px;">
                            产品名称：
                        </td>
                        <td class='bline'>
                            <asp:TextBox ID="txtName" runat="server" Width="400px"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator
                                ID="RequiredFieldValidator1" runat="server" ErrorMessage="产品名不能为空" 
                                ControlToValidate="txtName" Display="Dynamic"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td width="150" class='bline' height="26" style="padding-left: 10px;">
                            颜色：
                        </td>
                        <td class='bline'>
                            <asp:TextBox ID="txtAuthor" runat="server" Width="200px"></asp:TextBox>&nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="150" class='bline' height="26" style="padding-left: 10px;">
                            尺寸：
                        </td>
                        <td class='bline'>
                            <asp:TextBox ID="txtPublishDate" runat="server" Width="200px"></asp:TextBox>&nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="150" class='bline' height="26" style="padding-left: 10px;">
                            人民币价格：
                        </td>
                        <td class='bline'>
                            <asp:TextBox ID="txtPrice" runat="server" Width="50px"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator
                                ID="RequiredFieldValidator3" runat="server" ErrorMessage="人民币价格不能为空" 
                                ControlToValidate="txtPrice" Display="Dynamic"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                    ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtPrice" ErrorMessage="输入格式错误，例：1.00" Display="Dynamic" ValidationExpression="^[0-9]+.[0-9]+$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td width="150" class='bline' height="26" style="padding-left: 10px;">
                            美元价格：
                        </td>
                        <td class='bline'>
                            <asp:TextBox ID="txtDiscount" runat="server" Width="50px"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator
                                ID="RequiredFieldValidator4" runat="server" ErrorMessage="美元价格不能为空" 
                                ControlToValidate="txtDiscount" Display="Dynamic"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                    ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtDiscount" ErrorMessage="输入格式错误,例：1.0" Display="Dynamic" ValidationExpression="^[0-9]+.[0-9]+$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    
                    <tr style="display:none">
                        <td width="150" class='bline' height="26" style="padding-left: 10px;">
                            版次：
                        </td>
                        <td class='bline'>
                            <asp:TextBox ID="txtPulishCount" runat="server" Width="50px" Text="1"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator
                                ID="RequiredFieldValidator7" runat="server" ErrorMessage="版次不能为空" 
                                ControlToValidate="txtPulishCount" Display="Dynamic"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                    ID="RegularExpressionValidator3" runat="server" ErrorMessage="请输入整数数字" ControlToValidate="txtPulishCount" Display="Dynamic" ValidationExpression="^[0-9]+$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr style="display:none">
                        <td width="150" class='bline' height="26" style="padding-left: 10px;">
                            页数：
                        </td>
                        <td class='bline'>
                            <asp:TextBox ID="txtPages" runat="server" Width="50px" Text="1"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator
                                ID="RequiredFieldValidator8" runat="server" ErrorMessage="页数不能为空" 
                                ControlToValidate="txtPages" Display="Dynamic"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                    ID="RegularExpressionValidator4" runat="server" ErrorMessage="请输入整数数字" ControlToValidate="txtPages" Display="Dynamic" ValidationExpression="^[0-9]+$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr style="display:none">
                        <td width="150" class='bline' height="26" style="padding-left: 10px;">
                            装帧：
                        </td>
                        <td class='bline'>
                            <asp:TextBox ID="txtLayOut" runat="server" Width="50px" Text="1"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator
                                ID="RequiredFieldValidator9" runat="server" ErrorMessage="装帧不能为空" 
                                ControlToValidate="txtLayOut" Display="Dynamic"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr style="display:none">
                        <td width="150" class='bline' height="26" style="padding-left: 10px;">
                            开本：
                        </td>
                        <td class='bline'>
                            <asp:TextBox ID="txtSize" runat="server" Width="50px" Text="1"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator
                                ID="RequiredFieldValidator10" runat="server" ErrorMessage="开本不能为空" 
                                ControlToValidate="txtSize" Display="Dynamic"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                    ID="RegularExpressionValidator5" runat="server" ErrorMessage="输入格式错误" ControlToValidate="txtSize" Display="Dynamic" ValidationExpression="^[0-9]+$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td width="150" class='bline' height="26" style="padding-left: 10px;">
                            前言：
                        </td>
                        <td class='bline'>
                            <FCKeditorV2:FCKeditor ID="FCKeditor2" ToolbarSet="Basic" runat="server">
                            </FCKeditorV2:FCKeditor>
                        </td>
                    </tr>
                    <tr style="display:none">
                        <td width="150" class='bline' height="26" style="padding-left: 10px;">
                            目录：
                        </td>
                        <td class='bline'>
                            <FCKeditorV2:FCKeditor ID="FCKeditor3" ToolbarSet="Basic1" runat="server">
                            </FCKeditorV2:FCKeditor>
                        </td>
                    </tr>
                    
                    <tr>
                        <td class='bline' height="26" style="padding-left: 10px;">
                            上传图片：
                        </td>
                        <td class='bline'>
                            <input id="File1" type="file" runat="server" style="height:25px; width:210px;" /></td>
                    </tr>
                    <tr>
                        <td class='bline' height="26" style="padding-left: 10px;">
                            图片：
                        </td>
                        <td class='bline'>
                            <asp:Image ID="Image1" runat="server" ImageUrl="~/admin/images/booknopic.gif" Width="60px" Height="80px" />
                        </td>
                    </tr>
                    <tr style="display:none">
                        <td class='bline' height="26" style="padding-left: 10px;">
                            参数：
                        </td>
                        <td class='bline'>
                            <input id="cbHot" type="checkbox" value="1" class="np" runat="server" />新书推荐 <input id="cbGood" type="checkbox" value="1" class="np" runat="server" />编辑推荐 <input id="cbHotSale" type="checkbox" value="1" class="np" runat="server" />畅销图书
                        </td>
                    </tr>
                    <tr style="display:none">
                        <td class='bline' height="26" style="padding-left: 10px;">
                            &nbsp;
                        </td>
                        <td class='bline'>
                            <input id="cbTop" type="checkbox" value="1" class="np" runat="server" />网站首页
                        </td>
                    </tr>
                </table>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F9FCEF"
                    style="border: 1px solid #cfcfcf; border-top: none;">
                    <tr>
                        <td width="1%" height="35">
                        </td>
                        <td width="99%" valign="bottom">
                            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="../images/button_ok.gif"
                                class="np" onclick="ImageButton1_Click" />
                            &nbsp;&nbsp;<a href="Books.aspx"><img src="../images/button_back.gif" width="60" height="22" border="0" /></a>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
